package com.tansun.easycare.rule.ml.algorithm.entity;

import java.util.Map;

import com.tansun.easycare.core.persistence.DataEntity;

/**
 * pyhton服务响应Entity
 * @author xch
 * @version 2018-08-23
 */
public class PyResponse extends DataEntity<PyResponse> {
	
	private static final long serialVersionUID = 1L;
	private String modelId;			// 模型id，唯一
	private String resultCode;		// 响应码，成功，或者失败
	private Map<?,?> response;			// 数据文件
	
	public PyResponse() {
		super();
	}

	public PyResponse(String modelId, String resultCode, Map<?,?> response) {
		super();
		this.modelId = modelId;
		this.resultCode = resultCode;
		this.response = response;
	}

	public String getModelId() {
		return modelId;
	}

	public void setModelId(String modelId) {
		this.modelId = modelId;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public Map<?,?> getResponse() {
		return response;
	}

	public void setResponse(Map<?,?> response) {
		this.response = response;
	}

	@Override
	public String toString() {
		return "PyResponse [modelId=" + modelId + ", resultCode=" + resultCode + ", response=" + response + "]";
	}

	
	
}